package com.cool.springcloud.fix;

import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/8/18 9:51
 * @Version 1.0.0
 * @Description
 **/
//@Configuration
public class FixJackson2ObjectWaring {

    @Bean
    public Jackson2ObjectMapperBuilderCustomizer customize() {
        return jacksonObjectMapperBuilder ->
                jacksonObjectMapperBuilder.findModulesViaServiceLoader(true);

    }

}
